<%@ page language="java" contentType="text/html; charse=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
<div class="message-footer clearfix">
	<div class="pull-left"> ${page.pageCount } messages total </div>

	<div class="pull-right">
		<div class="inline middle"> page ${page.page==0?1:page.page} of ${page.pageAllSize } </div>

		&nbsp; &nbsp;
		<ul class="pagination middle">
			<li <c:if test="${page.page < 3 }">
						 class="disabled"
				</c:if>
				>
				<a onclick="page(${page.page-2})">
					<i class="icon-step-backward middle"></i>
				</a>
			</li>

			<li
				<c:if test="${page.page < 2 }">
						 class="disabled"
				</c:if>
			>
				<a onclick="page(${page.page-1})">
					<i class="icon-caret-left bigger-140 middle"></i>
				</a>
			</li>

			<li
				>
				<span>
					<input value="${page.page == 0 ? 1:page.page}" maxlength="3" type="text" />
				</span>
			</li>

			<li  <c:if test="${page.page >= page.pageAllSize }">
						 class="disabled"
				</c:if>>
				<a onclick="page(${page.page+1})">
					<i class="icon-caret-right bigger-140 middle"></i>
				</a>
			</li>

			<li <c:if test="${page.page >= page.pageAllSize-1 }">
						 class="disabled"
				</c:if>>
				<a onclick="page(${page.page+2})">
					<i class="icon-step-forward middle"></i>
				</a>
			</li>
		</ul>
	</div>
</div>
		</div>
	</div>
</div>
